package com.myrule;


import com.netflix.loadbalancer.IRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 自定义负载均衡规则
 */
@Configuration
public class MyConfiguration {

    @Bean
    public IRule customRule(){
        return new MyRandomRule();
    }
}
